/*
 * @Description: 
 * @Version: 2.0
 * @Author: 
 * @Date: 2022-04-01 12:43:26
 * @LastEditors: cxc
 * @LastEditTime: 2022-04-01 14:54:15
 */
import React from 'react'
import { Row, Col, Modal } from 'antd';


export default function DeleteComModal(props) {
  const { title, visible, onOk, onCancel, icon, content } = props
  return (
    <>
      {/* 对话框 */}
      {/* 新增部门 */}
      <Modal className='dep_add_modal'
        destroyOnClose='true'
        cancelText='关闭'
        okText='确定'
        centered='true'
        title={title}
        visible={visible}
        onOk={onOk}
        onCancel={onCancel} >
        <Row >
          <Col span={4} >
            <div className='delete_wrap'>
              <span className='modal_con_del_icon'> {icon}</span>
            </div>
          </Col>
          <Col span={20} className='delete_title'>{content} </Col>
        </Row>
      </Modal>
    </>
  )
}
